import { configureStore } from "@reduxjs/toolkit";
import { languageSlice } from "./language/language.slice";


const rootReducer = {
    language: languageSlice.reducer
};

export const rootStore = configureStore({
    reducer: rootReducer
});

export type AppDispatch = typeof rootStore.dispatch;
export type RootState = ReturnType<typeof rootStore.getState>;
